//
//  WYHBLEPrinterTool.h
//  BluetoothPrint
//
//  Created by wang on 2017/11/3.
//  Copyright © 2017年 wang. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "WYHPrintDataAppendTool.h"



typedef NS_ENUM (NSInteger, PrintErrorType){
    
    PrintErrorTypeOff = 1,  //蓝牙没有打开
    PrintErrorTypeSelectDevice,  //请先选择蓝牙打开
    PrintErrorTypeError,   //打印失败
};




@protocol WYHBLEPrinterToolDelegate <NSObject>
@optional
/**
 打印失败提示

 @param hint
 */
- (void)printerErrorHint:(PrintErrorType)type;

/**
 打印成功
 */
- (void)printSuccess;
@end




@interface WYHBLEPrinterTool : NSObject

@property (nonatomic, weak) id<WYHBLEPrinterToolDelegate> delegate;

/**
 打印数据拼接
 */
@property (nonatomic, strong) WYHPrintDataAppendTool *dataTool;

/// 打印份数
@property (nonatomic, assign) NSInteger pageNum;

/**
 开始打印
 */
- (void)startToPrint;
@end
